python: Add binding for non-blocking xs_check_watch()
authorEuan Harris <euan.harris@citrix.com>
Fri, 22 Sep 2017 16:21:14 +0000 (17:21 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 25 Sep 2017 13:36:00 +0000 (14:36 +0100)
commit5fc07747d6c4a31cc800af4939d11fef6b62da46
tree9b4410e275669ab93d03a8c94d48fadf96da677e
parentf6e10234120ab918b4088ec9ba17c1101d3f5f47
python: Add binding for non-blocking xs_check_watch()

xs_check_watch() checks for watch notifications without blocking.
Together with the binding for xs_fileno(), this makes it possible
to write event-driven clients in Python.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
tools/python/xen/lowlevel/xs/xs.c